﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PlaneClean.Models
{
    public class BaseListRequest:BaseRequest
    {
        /// <summary>
        /// 页码
        /// </summary>
        public long page { get; set; }
        /// <summary>
        /// 每页数量
        /// </summary>
        public long rows { get; set; }
        /// <summary>
        /// 排序字段
        /// </summary>
        public string sort { get; set; }
        /// <summary>
        /// 排序顺序
        /// </summary>
        public string order { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public long? id { get; set; }
        /// <summary>
        /// 上级编号
        /// </summary>
        public long? parentId { get; set; }
        /// <summary>
        /// 上级GUID
        /// </summary>
        public string parentGuid { get; set; }
    }
    public class PageListRequest<T> : BaseRequest<T>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int pageIndex { get; set; }
        /// <summary>
        /// 每页数量
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 排序字段
        /// </summary>
        public string orderColumn { get; set; }
        /// <summary>
        /// 排序顺序
        /// </summary>
        public string orderSort { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public long? id { get; set; }
        /// <summary>
        /// 上级编号
        /// </summary>
        public long? parentId { get; set; }
        /// <summary>
        /// 上级GUID
        /// </summary>
        public string parentGuid { get; set; }
    }
}